package cn.iocoder.yudao.module.erp.convert.goodswarehouselink;

import cn.iocoder.yudao.module.erp.controller.admin.saleorder.vo.SaleOrderGoodsRespVO;
import cn.iocoder.yudao.module.erp.controller.admin.stock.goodswarehouselink.vo.GoodsWarehouseLinkRespVO;
import cn.iocoder.yudao.module.erp.dal.dataobject.stock.goodswarehouselink.GoodsWarehouseLinkDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ErpGoodsWarehouseLinkConvert {
    ErpGoodsWarehouseLinkConvert INSTANCE = Mappers.getMapper(ErpGoodsWarehouseLinkConvert.class);

    GoodsWarehouseLinkRespVO convert(GoodsWarehouseLinkDO bean);

    List<GoodsWarehouseLinkRespVO> convertList(List<GoodsWarehouseLinkDO> list);

    SaleOrderGoodsRespVO.InventoryItem convertToInventoryItem(GoodsWarehouseLinkDO bean);
    List<SaleOrderGoodsRespVO.InventoryItem> convertToInventoryItemList(List<GoodsWarehouseLinkDO> list);
}
